package com.example.mapper;

import com.example.pojo.Employe;
import com.example.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EmployeeMapper {
    List<Employee> queryEmp();
    Employee queryEmpById(int id);
    Employee queryEmpByName(String username);
    void addEmp(Employe employe);
    void updateEmp(Employee employee);
    void deleteEmp(int id);
}
